//
//  main.m
//  WJKitTest
//
//  Created by 王军 on 2018/12/7.
//  Copyright © 2018 skcwiiur. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "AppDelegate.h"
#import "WJSimpleNetwork.h"

int main(int argc, char * argv[]) {
    @autoreleasepool {
        
        [WJSimpleNetwork request:@"GET" params:nil WithUrl:[NSURL URLWithString:@"http://www.baidu.com"] setRequest:^(NSMutableDictionary *dic) {
        } success:^(NSDictionary *dic) {
            NSLog(@"%@",dic);
            NSLog(@"%@",dic);
            NSLog(@"%@",dic);
        } fail:^(NSString *msg) {
            NSLog(@"%@",msg);
            NSLog(@"%@",msg);
            NSLog(@"%@",msg);
            NSLog(@"%@",msg);
        }];
        
        // 发起网络访问
//        [WJSimpleNetwork getMethod:[NSURL URLWithString:@"http://www.baidu.com"] format:nil success:^(id result) {
//            NSLog(@"%@",result);
//        } fail:^(NSString *msg) {
//            NSLog(@"%@",msg);
//        }];
//        
        return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class]));
    }
}
